package com.bsoft.gol.hcs.visitrecord.dao;

import ctd.persistence.annotation.DAOMethod;
import ctd.persistence.annotation.DAOParam;
import ctd.persistence.support.hibernate.HibernateSupportDelegateDAO;
import com.bsoft.gol.hcs.visitrecord.entity.VrSynchroSettings;

import java.util.List;

/**
 * @author fzy91
 * @title: VrSynchroSettingsDAO
 * @projectName GOL-ssdev4
 * @description: 诊疗数据同步设置表
 * @date 2022/5/3010:31
 */
public abstract class VrSynchroSettingsDAO  extends HibernateSupportDelegateDAO<VrSynchroSettings> {

    @DAOMethod(sql = "from VrSynchroSettings where org_id=:organizationId")
    public abstract List<VrSynchroSettings> queryVrSynchroSettingsListByOrgId(@DAOParam("organizationId") String organizationId);

    @DAOMethod(sql = "from VrSynchroSettings ")
    public abstract List<VrSynchroSettings> queryVrSynchroSettingsList();

    @DAOMethod(sql = "from VrSynchroSettings where storage_month!=0")
    public abstract List<VrSynchroSettings> queryVrSynchroSettingsListByMonth();

    @DAOMethod(sql = "from VrSynchroSettings where settingType=:settingType ")
    public abstract List<VrSynchroSettings> queryVrSynchroSettingsOrgListByType(@DAOParam("settingType")Integer settingType);
}
